#pragma once

#include <QObject>
#include <QTcpSocket>


class TcpBusiness  : public QObject
{
	Q_OBJECT

public:
	TcpBusiness(qintptr socketDescriptor, QObject *parent = nullptr);
	~TcpBusiness();

	void creatConn();

signals:
	void error(QTcpSocket::SocketError socketError);

private:
	QTcpSocket* m_tcpSocket;
	qintptr m_socketDescriptor;

private:
	void echo();

};
